/*
 * app_indicator.h
 *
 *  Created on: Oct 10, 2013
 *      Author: Omar Sevilla
 */

#ifndef APP_INDICATOR_H_
#define APP_INDICATOR_H_

#define INDICATOR1_SHIFT	(1 << 9)
#define INDICATOR2_SHIFT	(1 << 10)

#define	OFF					0
#define	ANALOG_MODE 		1
#define SECUENCIAL_MODE		2

#define NORMAL				0
#define EXTERNAL			1

#define SET_INDICATOR1		(GPIOB_PSOR |= INDICATOR1_SHIFT)
#define SET_INDICATOR2		(GPIOB_PSOR |= INDICATOR2_SHIFT)
#define CLEAR_INDICATOR1	(GPIOB_PCOR |= INDICATOR1_SHIFT)
#define	CLEAR_INDICATOR2	(GPIOB_PCOR |= INDICATOR2_SHIFT)

void init_indicator(void);
void set_indicator(T_UBYTE T_UBYTE_IndicatorValue);

#endif /* APP_INDICATOR_H_ */
